﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Editor.aspx.cs" Inherits="admin_category_Editor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Kimland - Quản trị chuyên mục</title>
    <script src="/admin/js/category.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        $(function () {
            $(".headerR li:eq(6)").addClass("active");
        })
    </script>
    <style type="text/css">
        .boxMenuL:hover a,.boxMenuL.active a{color:#d80018;text-decoration:none;text-transform:uppercase;}
        .boxMenuL:hover,.boxMenuL.active{margin-bottom:5px;}
        .boxMenuL:hover .l,.boxMenuL.active .l{background:url(/images/sm_l.png) no-repeat;}
        .boxMenuL:hover .m,.boxMenuL.active .m{background:url(/images/sm_m.png) repeat-x;}
        .boxMenuL:hover .r,.boxMenuL.active .r{background:url(/images/sm_r.png) no-repeat;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="body">
   <div class="bodyL">
        <p class="gOval"><a href="/admin/category/default.aspx" class="chuyenmuc"></a></p>
        <div class="menuL">
            <div class="boxMenuL" boxid="171">
                <span class="l"></span><span class="m"><a href="?id=171">Chuyên mục tin</a></span><span class="r"></span>                   
            </div>               
        </div>
        <div class="menuL">
            <div class="boxMenuL" boxid="179">
                <span class="l"></span><span class="m"><a href="?id=179">Chuyên mục TTDS</a></span><span class="r"></span>                   
            </div>
        </div>
    </div>
           
    <div class="bodyR">
        <div class="topCatBR">
            <p class="l"></p>
            <div class="m">
                <p class="pos">
                    <asp:Literal ID="litPos" runat="server"></asp:Literal>
                </p>
            </div>
            
            <p class="r"></p>
        </div>
        <div class="boxBorder" style="height:500px;min-height:500px;height:auto">
            
             <div class="info_div" id="fail" runat="server" visible="false"><span class="ico_cancel">Có lỗi xảy ra!</span></div>
   
	        <table class="edit">
                <tr>
                    <th>Tên chuyên mục: </th>
                    <td><asp:TextBox ID="txtCatName" runat="server" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>Ảnh minh họa:</th>
                    <td><asp:FileUpload ID="fileUpAvatar" runat="server" CssClass="fileUpload"/>
                        <p class="imgAvatar">
                            <asp:Image ID="imgAvatar" runat="server" ImageUrl="/images/no_image.jpg" Width="58px" Height="58px" style="margin:3px;padding:0px;"/>
                        </p>
                    </td>
                </tr>
                 <tr style="display:none">
                    <th>Xuất hiện trên trang chủ:</th>
                    <td><asp:CheckBox ID="chkIsHomepage" runat="server" /></td>
                </tr>        
                <tr>
                    <th>Thứ tự:</th>
                    <td><asp:TextBox ID="txtCatOrder" runat="server" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>Giới thiệu:</th>
                    <td><asp:TextBox ID="txtDes" runat="server" Width="500px" TextMode="MultiLine" ></asp:TextBox></td>
                </tr>
                <tr>
                    <th>Meta Title:</th>
                    <td><asp:TextBox ID="txtMetaTitle" runat="server" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>Meta Key:</th>
                    <td><asp:TextBox ID="txtMetaKey" runat="server" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>Meta Description: </th>
                    <td><asp:TextBox ID="txtMetaDes" runat="server" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <th></th>
                    <td><asp:Button ID="btnEdit" runat="server" Text="Sửa" CssClass="buttonA" onclick="btnEdit_Click" />
                        <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" CssClass="buttonA" onclick="btnAdd_Click"/>
                        <asp:Button ID="btnCancel" runat="server" Text="Hủy" CssClass="buttonA" onclick="btnCancel_Click"/>		
                    </td>
                </tr>
            </table>	
	        <asp:HiddenField ID="hidID" runat="server" />
            <asp:HiddenField ID="hidCatID" runat="server" />
            <asp:HiddenField ID="hidAvatar" runat="server" Value="/images/no_image.jpg"/> 
        </div>
    </div>
</div>
</asp:Content>


